'use strict';
var Model = require('../../../Base/server/controllers/Model');

var modelField = {};
modelField.Org = {
    type: String,
    trim: true
};
modelField.OrgCode = {
    type: String,
    trim: true
};
modelField.OrgName = {
    type: String,
    trim: true
};
modelField.Code = {
    type: String,
    Name: '编码',
    IsEmpty: false,
    trim: true
};
modelField.Name = {
    type: String,
    trim: true
};
modelField.Warehouse = {
    type: String,
    trim: true
};
modelField.WarehouseCode = {
    type: String,
    trim: true
};
modelField.WarehouseName = {
    type: String,
    trim: true
};
modelField.IsEffective = {
    type: Boolean,
    default: false
};
modelField.ErpID = {
    type: String,
    Name: 'ERP ID',
    IsEmpty: false,
    IsUnique: true,
    trim: true
};
modelField.Dsc = {
    type: String,
    default: ''
};

var newModel = new Model(modelField);
newModel.create('Bin', '库位');